import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'colors.dart';
import 'dimens.dart';

class TextStyles {
  static TextStyle textDark70 = TextStyle(
    fontSize: ScreenUtil().setWidth(70),
    color: Colours.text_dark,
  );

  static TextStyle textDarkBold52 = TextStyle(
    fontSize: ScreenUtil().setWidth(52),
    color: Colours.text_dark,
    fontWeight: FontWeight.bold,
  );

  static TextStyle textDarkBold43 = TextStyle(
      fontSize: ScreenUtil().setWidth(43),
      color: Colours.text_dark,
      fontWeight: FontWeight.bold);
  static TextStyle textDarkBold47 = TextStyle(
      fontSize: ScreenUtil().setWidth(47),
      color: Colours.text_dark,
      fontWeight: FontWeight.bold);


  static TextStyle textDark30 = TextStyle(
    fontSize: ScreenUtil().setWidth(30),
    color: Colours.text_dark,
  );
  static TextStyle textDark36 = TextStyle(
    fontSize: ScreenUtil().setWidth(36),
    color: Colours.text_dark,
  );

  static TextStyle textDark43 = TextStyle(
      fontSize: ScreenUtil().setWidth(43),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);

  static TextStyle textDark37 = TextStyle(
      fontSize: ScreenUtil().setWidth(37),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);


  static TextStyle textContent37 = TextStyle(
      fontSize: ScreenUtil().setWidth(37),
      color: Colours.text_content2,
      fontWeight: FontWeight.w400);

  static TextStyle textContent31 = TextStyle(
      fontSize: ScreenUtil().setWidth(31),
      color: Colours.text_content2,
      fontWeight: FontWeight.w400);


  static TextStyle textDark34 = TextStyle(
      fontSize: ScreenUtil().setWidth(34),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);

  static TextStyle textDark31 = TextStyle(
      fontSize: ScreenUtil().setWidth(31),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);
  static TextStyle textDark29 = TextStyle(
      fontSize: ScreenUtil().setWidth(29),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);
  static TextStyle textDark28 = TextStyle(
      fontSize: ScreenUtil().setWidth(28),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);

  static TextStyle textDark23 = TextStyle(
      fontSize: ScreenUtil().setWidth(23),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);

  static TextStyle textDark14 = TextStyle(
      fontSize: ScreenUtil().setWidth(14),
      color: Colours.text_dark,
      fontWeight: FontWeight.w400);


  static TextStyle textGrey43 = TextStyle(
      fontSize: ScreenUtil().setWidth(43),
      color: Colours.text_gray,
      fontWeight: FontWeight.w400);

  static TextStyle textGray27 = TextStyle(
    fontSize: ScreenUtil().setWidth(27),
    color: Colours.text_gray,
  );

  static TextStyle textGray30 = TextStyle(
    fontSize: ScreenUtil().setWidth(30),
    color: Colours.text_gray,
  );

  static TextStyle textGray31 = TextStyle(
    fontSize: ScreenUtil().setWidth(31),
    color: Colours.text_gray,
  );
  static TextStyle textGray33 = TextStyle(
    fontSize: ScreenUtil().setWidth(33),
    color: Colours.text_gray,
  );
  static TextStyle textGray35 = TextStyle(
    fontSize: ScreenUtil().setWidth(35),
    color: Colours.text_gray,
  );
  static TextStyle textGray37 = TextStyle(
    fontSize: ScreenUtil().setWidth(37),
    color: Colours.text_gray,
  );

  static TextStyle textGray47 = TextStyle(
    fontSize: ScreenUtil().setWidth(47),
    color: Colours.text_gray,
  );

  static TextStyle textGrayA231 = TextStyle(
    fontSize: ScreenUtil().setWidth(31),
    color: Colours.gray_a2,
  );

  static TextStyle textBlue36 = TextStyle(
    fontSize: ScreenUtil().setWidth(36),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue37 = TextStyle(
    fontSize: ScreenUtil().setWidth(37),
    color: circleAvatarMap["B"],
  );

  static TextStyle textBlue43 = TextStyle(
    fontSize: ScreenUtil().setWidth(43),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue47 = TextStyle(
    fontSize: ScreenUtil().setWidth(47),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue22 = TextStyle(
    fontSize: ScreenUtil().setWidth(22),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue27 = TextStyle(
    fontSize: ScreenUtil().setWidth(27),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue30 = TextStyle(
    fontSize: ScreenUtil().setWidth(30),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue31 = TextStyle(
    fontSize: ScreenUtil().setWidth(31),
    color: circleAvatarMap["B"],
  );
  static TextStyle textBlue34 = TextStyle(
    fontSize: ScreenUtil().setWidth(34),
    color: circleAvatarMap["B"],
  );

  static TextStyle textOrange30 = TextStyle(
    fontSize: ScreenUtil().setWidth(30),
    color: circleAvatarMap["O"],
  );
  static TextStyle textOrange37 = TextStyle(
    fontSize: ScreenUtil().setWidth(37),
    color: circleAvatarMap["O"],
  );
  static TextStyle textOrange43 = TextStyle(
    fontSize: ScreenUtil().setWidth(43),
    color: circleAvatarMap["O"],
  );
  static TextStyle textWhite29 = TextStyle(
    fontSize: ScreenUtil().setWidth(29),
    color: Colors.white,
  );
  static TextStyle textWhite30 = TextStyle(
    fontSize: ScreenUtil().setWidth(30),
    color: Colors.white,
  );
  static TextStyle textWhite37 = TextStyle(
    fontSize: ScreenUtil().setWidth(37),
    color: Colors.white,
  );
  static TextStyle textWhite43 = TextStyle(
    fontSize: ScreenUtil().setWidth(43),
    color: Colors.white,
  );

  //红色
  static TextStyle textRed34 =
      TextStyle(fontSize: ScreenUtil().setWidth(34), color: Colors.redAccent);
  //浅红色
  static TextStyle textF431 =
  TextStyle(fontSize: ScreenUtil().setWidth(31), color: Colours.blue_f4);
}

class Decorations {
  static Decoration bottom = BoxDecoration(
      border: Border(bottom: BorderSide(width: 0.33, color: Colours.divider)));
}

/// 间隔
class Gaps {
  /// 水平间隔
  static Widget hGap5 = new SizedBox(width: Dimens.gap_dp5);
  static Widget hGap10 = new SizedBox(width: Dimens.gap_dp10);
  static Widget hGap15 = new SizedBox(width: Dimens.gap_dp15);

  /// 垂直间隔
  static Widget vGap5 = new SizedBox(height: Dimens.gap_dp5);
  static Widget vGap10 = new SizedBox(height: Dimens.gap_dp10);
  static Widget vGap15 = new SizedBox(height: Dimens.gap_dp15);
}
